home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / Rings.swf / scripts / __Packages / Ring.as < prev    next >
Text File  |  2011-01-13  |  16KB  |  568 lines

  1. var ┬º\x01┬º = 434;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 434)
  5.    {
  6.       set("\x01",eval("\x01") - 193);
  7.       ┬º┬ºpush(true);
  8.       continue;
  9.    }
  10.    if(eval("\x01") == 650)
  11.    {
  12.       set("\x01",eval("\x01") + 77);
  13.       ┬º┬ºpush(┬º┬ºpop() >>> ┬º┬ºpop());
  14.       break;
  15.    }
  16.    if(eval("\x01") == 377)
  17.    {
  18.       set("\x01",eval("\x01") - 331);
  19.       if(┬º┬ºpop())
  20.       {
  21.          set("\x01",eval("\x01") + 497);
  22.       }
  23.       continue;
  24.    }
  25.    if(eval("\x01") == 241)
  26.    {
  27.       set("\x01",eval("\x01") + 453);
  28.       if(┬º┬ºpop())
  29.       {
  30.          set("\x01",eval("\x01") + 16);
  31.       }
  32.       continue;
  33.    }
  34.    if(eval("\x01") == 367)
  35.    {
  36.       set("\x01",eval("\x01") + 454);
  37.       ┬º┬ºpush(true);
  38.       continue;
  39.    }
  40.    if(eval("\x01") == 714)
  41.    {
  42.       set("\x01",eval("\x01") - 103);
  43.       if(┬º┬ºpop())
  44.       {
  45.          set("\x01",eval("\x01") + 292);
  46.       }
  47.       continue;
  48.    }
  49.    if(eval("\x01") == 694)
  50.    {
  51.       set("\x01",eval("\x01") + 16);
  52.       break;
  53.    }
  54.    if(eval("\x01") == 125)
  55.    {
  56.       set("\x01",eval("\x01") + 573);
  57.       if(!_global.Ring)
  58.       {
  59.          _global.Ring extends MovieClip;
  60.          var _loc2_ = _global.Ring = function()
  61.          {
  62.             super();
  63.             this.onPress = mx.utils.Delegate.create(this,this.Select);
  64.             this.done = false;
  65.          }.prototype;
  66.          _loc2_.PickUp = function()
  67.          {
  68.             if(this.canPickUp and this.isSelected)
  69.             {
  70.                if(this.game.CheckValidPickup(this,this.cell))
  71.                {
  72.                   this.pickedUp = true;
  73.                   this.cell.hasType[this.type - 1] = false;
  74.                   this.game.currentRing = this;
  75.                   this.game.mainTimeline.sounds.ringpickup.play();
  76.                   ┬º┬ºpush(this.startDrag(false));
  77.                }
  78.                else
  79.                {
  80.                   trace("can\'t pick this one up: " + this);
  81.                }
  82.             }
  83.          };
  84.          _loc2_.Select = function()
  85.          {
  86.             if(this.cell.num == 7)
  87.             {
  88.                this.game.ClickCentreCell();
  89.                return undefined;
  90.             }
  91.             if(this.game.currentRing.type == undefined)
  92.             {
  93.                this.isSelected = true;
  94.                this.PickUp();
  95.             }
  96.             else
  97.             {
  98.                trace("current ring: " + this.game.currentRing);
  99.             }
  100.          };
  101.          addr315:
  102.          _loc2_.Drop = function()
  103.          {
  104.             if(this.done)
  105.             {
  106.                trace("TRIED TO DROP DONE RING: " + this.type);
  107.                return undefined;
  108.             }
  109.             var _loc3_ = this.game.GetCellAtPos(this._x,this._y);
  110.             var _loc4_ = false;
  111.             if(_loc3_ != null)
  112.             {
  113.                if(this.game.CheckValidPut(this,_loc3_) == true)
  114.                {
  115.                   this.cellNum = _loc3_.num;
  116.                   this.cell = _loc3_;
  117.                   this.isSelected = false;
  118.                   _loc4_ = true;
  119.                }
  120.             }
  121.             if(_loc4_)
  122.             {
  123.                this.MoveToCellPos();
  124.                var _loc2_ = 1;
  125.                while(_loc2_ < 7)
  126.                {
  127.                   _loc2_ = _loc2_ + 1;
  128.                }
  129.                this.pickedUp = false;
  130.                this.game.currentRing = null;
  131.                ┬º┬ºpush(this.stopDrag());
  132.             }
  133.             else
  134.             {
  135.                this.game.mainTimeline.sounds.invalidplace.play();
  136.             }
  137.          };
  138.          _loc2_.MoveToCellPos = function()
  139.          {
  140.             this.game.mainTimeline.sounds.ringplace.play();
  141.             trace("add type: " + this.type + " to cell: " + this.cell.num);
  142.             this.cell.hasType[this.type - 1] = true;
  143.             this._x = this.cell._x;
  144.             this._y = this.cell._y;
  145.             var _loc3_ = this.cell.CheckCompleteRing();
  146.             if(_loc3_ > 0)
  147.             {
  148.                var _loc2_ = undefined;
  149.                switch(_loc3_)
  150.                {
  151.                   case 1:
  152.                      _loc2_ = 1000;
  153.                      break;
  154.                   case 2:
  155.                      _loc2_ = 500;
  156.                      break;
  157.                   case 3:
  158.                      _loc2_ = 250;
  159.                }
  160.                this.scoreValue_mc.scoreValue_txt.text = _loc2_.toString();
  161.                if(this.game.multiplier)
  162.                {
  163.                   this.scoreValueBon_mc.scoreValue_txt.text = "+" + (_loc2_ * this.game.multiplier).toString();
  164.                }
  165.                this.game.CompleteRing(this.cell,_loc3_);
  166.             }
  167.          };
  168.          _loc2_.MovetoDest = function()
  169.          {
  170.             this.cell = this.game.GetCellAtNum(this.dest);
  171.             if(this.game.CheckValidPut(this,this.cell) == true)
  172.             {
  173.                trace("slide " + this.type + " to cell: " + this.cell.num);
  174.                this.canPickUp = true;
  175.                this.MoveToCellPos();
  176.             }
  177.             else
  178.             {
  179.                trace("cell highest type : " + this.cell.GetHighestRingType());
  180.                this.game.EndRound(false);
  181.             }
  182.          };
  183.          _loc2_.isSelected = false;
  184.          _loc2_.pickedUp = false;
  185.          ┬º┬ºpush(ASSetPropFlags(_global.Ring.prototype,null,1));
  186.       }
  187.       ┬º┬ºpop();
  188.       break;
  189.    }
  190.    if(eval("\x01") == 680)
  191.    {
  192.       set("\x01",eval("\x01") - 303);
  193.       ┬º┬ºpush(true);
  194.       continue;
  195.    }
  196.    if(eval("\x01") == 186)
  197.    {
  198.       set("\x01",eval("\x01") + 722);
  199.       if(┬º┬ºpop())
  200.       {
  201.          set("\x01",eval("\x01") - 541);
  202.       }
  203.       continue;
  204.    }
  205.    if(eval("\x01") == 405)
  206.    {
  207.       set("\x01",eval("\x01") + 533);
  208.       ┬º┬ºpush(true);
  209.       continue;
  210.    }
  211.    if(eval("\x01") == 938)
  212.    {
  213.       set("\x01",eval("\x01") - 527);
  214.       if(┬º┬ºpop())
  215.       {
  216.          set("\x01",eval("\x01") - 291);
  217.       }
  218.       continue;
  219.    }
  220.    if(eval("\x01") == 821)
  221.    {
  222.       set("\x01",eval("\x01") - 171);
  223.       if(┬º┬ºpop())
  224.       {
  225.          set("\x01",eval("\x01") + 77);
  226.       }
  227.       continue;
  228.    }
  229.    if(eval("\x01") == 611)
  230.    {
  231.       set("\x01",eval("\x01") + 292);
  232.       break;
  233.    }
  234.    if(eval("\x01") == 798)
  235.    {
  236.       set("\x01",eval("\x01") - 673);
  237.       nextFrame();
  238.       break;
  239.    }
  240.    if(eval("\x01") == 543)
  241.    {
  242.       set("\x01",eval("\x01") - 267);
  243.       ┬º┬ºpush(true);
  244.       continue;
  245.    }
  246.    if(eval("\x01") == 698)
  247.    {
  248.       set("\x01",eval("\x01") - 698);
  249.       break;
  250.    }
  251.    if(eval("\x01") == 908)
  252.    {
  253.       set("\x01",eval("\x01") - 541);
  254.       break;
  255.    }
  256.    if(eval("\x01") == 903)
  257.    {
  258.       set("\x01",eval("\x01") - 310);
  259.       ┬º┬ºpush(true);
  260.       continue;
  261.    }
  262.    if(eval("\x01") == 276)
  263.    {
  264.       set("\x01",eval("\x01") + 522);
  265.       if(┬º┬ºpop())
  266.       {
  267.          set("\x01",eval("\x01") - 673);
  268.       }
  269.       continue;
  270.    }
  271.    if(eval("\x01") == 207)
  272.    {
  273.       set("\x01",eval("\x01") + 430);
  274.       ┬º┬ºpush(true);
  275.       continue;
  276.    }
  277.    if(eval("\x01") == 120)
  278.    {
  279.       set("\x01",eval("\x01") + 1);
  280.       ┬º┬ºpush(true);
  281.       continue;
  282.    }
  283.    if(eval("\x01") == 710)
  284.    {
  285.       set("\x01",eval("\x01") - 524);
  286.       ┬º┬ºpush(true);
  287.       continue;
  288.    }
  289.    if(eval("\x01") == 727)
  290.    {
  291.       set("\x01",eval("\x01") - 13);
  292.       ┬º┬ºpush(true);
  293.       continue;
  294.    }
  295.    if(eval("\x01") == 593)
  296.    {
  297.       set("\x01",eval("\x01") - 86);
  298.       if(┬º┬ºpop())
  299.       {
  300.          set("\x01",eval("\x01") - 300);
  301.       }
  302.       continue;
  303.    }
  304.    if(eval("\x01") == 507)
  305.    {
  306.       set("\x01",eval("\x01") - 300);
  307.       break;
  308.    }
  309.    if(eval("\x01") == 637)
  310.    {
  311.       set("\x01",eval("\x01") - 611);
  312.       if(┬º┬ºpop())
  313.       {
  314.          set("\x01",eval("\x01") + 379);
  315.       }
  316.       continue;
  317.    }
  318.    if(eval("\x01") != 26)
  319.    {
  320.       if(eval("\x01") == 411)
  321.       {
  322.          set("\x01",eval("\x01") - 291);
  323.          break;
  324.       }
  325.       if(eval("\x01") != 121)
  326.       {
  327.          if(eval("\x01") == 356)
  328.          {
  329.             set("\x01",eval("\x01") + 324);
  330.             break;
  331.          }
  332.          if(eval("\x01") == 46)
  333.          {
  334.             set("\x01",eval("\x01") + 497);
  335.             nextFrame();
  336.             toggleHighQuality();
  337.             ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop()[┬º┬ºpop()] - _global.Ring = function()
  338.             {
  339.                super();
  340.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  341.                this.done = false;
  342.             }.mx;
  343.             _global.Ring = function()
  344.             {
  345.                super();
  346.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  347.                this.done = false;
  348.             }.canPickUp = _global.Ring = function()
  349.             {
  350.                super();
  351.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  352.                this.done = false;
  353.             }.canPickUp + 1;
  354.             if(_global.Ring = function()
  355.             {
  356.                super();
  357.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  358.                this.done = false;
  359.             }.Select > _global.Ring = function()
  360.             {
  361.                super();
  362.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  363.                this.done = false;
  364.             }.prototype)
  365.             {
  366.                _global.Ring = function()
  367.                {
  368.                   super();
  369.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  370.                   this.done = false;
  371.                }.Select = _global.Ring = function()
  372.                {
  373.                   super();
  374.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  375.                   this.done = false;
  376.                }.prototype;
  377.                _global.Ring = function()
  378.                {
  379.                   super();
  380.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  381.                   this.done = false;
  382.                }.currentRing = _global.Ring = function()
  383.                {
  384.                   super();
  385.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  386.                   this.done = false;
  387.                }.MovieClip;
  388.             }
  389.             if(_global.Ring = function()
  390.             {
  391.                super();
  392.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  393.                this.done = false;
  394.             }.Select < 0)
  395.             {
  396.                _global.Ring = function()
  397.                {
  398.                   super();
  399.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  400.                   this.done = false;
  401.                }.Select = 0;
  402.             }
  403.             _global.Ring = function()
  404.             {
  405.                super();
  406.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  407.                this.done = false;
  408.             }.pickedUp = _global.Ring = function()
  409.             {
  410.                super();
  411.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  412.                this.done = false;
  413.             }.pickedUp + _global.Ring = function()
  414.             {
  415.                super();
  416.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  417.                this.done = false;
  418.             }.Select * _global.Ring = function()
  419.             {
  420.                super();
  421.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  422.                this.done = false;
  423.             }.create;
  424.             _global.Ring = function()
  425.             {
  426.                super();
  427.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  428.                this.done = false;
  429.             }.MovieClip = _global.Ring = function()
  430.             {
  431.                super();
  432.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  433.                this.done = false;
  434.             }.MovieClip + hasType.type(_global.Ring = function()
  435.             {
  436.                super();
  437.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  438.                this.done = false;
  439.             }.Select);
  440.             if(hasType.type(_global.Ring = function()
  441.             {
  442.                super();
  443.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  444.                this.done = false;
  445.             }.pickedUp - _global.Ring = function()
  446.             {
  447.                super();
  448.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  449.                this.done = false;
  450.             }.onPress) < _global.Ring = function()
  451.             {
  452.                super();
  453.                this.onPress = mx.utils.Delegate.create(this,this.Select);
  454.                this.done = false;
  455.             }.Select * 2)
  456.             {
  457.                _global.Ring = function()
  458.                {
  459.                   super();
  460.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  461.                   this.done = false;
  462.                }.pickedUp = _global.Ring = function()
  463.                {
  464.                   super();
  465.                   this.onPress = mx.utils.Delegate.create(this,this.Select);
  466.                   this.done = false;
  467.                }.onPress;
  468.             }
  469.             ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  470.             ringpickup(_global.Ring.cell,null,1);
  471.             break;
  472.          }
  473.       }
  474.       set("\x01",eval("\x01") + 235);
  475.       if(┬º┬ºpop())
  476.       {
  477.          set("\x01",eval("\x01") + 324);
  478.       }
  479.       continue;
  480.       break;
  481.    }
  482.    set("\x01",eval("\x01") + 379);
  483.    var _loc3_ = _global.Ring = function()
  484.    {
  485.       super();
  486.       this.onPress = mx.utils.Delegate.create(this,this.Select);
  487.       this.done = false;
  488.    }.game.GetCellAtPos(┬º┬ºpop()[┬º┬ºpop()],┬º┬ºpop());
  489.    var _loc4_ = false;
  490.    if(_loc3_ != null)
  491.    {
  492.       if(_global.Ring = function()
  493.       {
  494.          super();
  495.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  496.          this.done = false;
  497.       }.game.CheckValidPut(_global.Ring = function()
  498.       {
  499.          super();
  500.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  501.          this.done = false;
  502.       },_loc3_) == true)
  503.       {
  504.          _global.Ring = function()
  505.          {
  506.             super();
  507.             this.onPress = mx.utils.Delegate.create(this,this.Select);
  508.             this.done = false;
  509.          }.cellNum = _loc3_.num;
  510.          _global.Ring = function()
  511.          {
  512.             super();
  513.             this.onPress = mx.utils.Delegate.create(this,this.Select);
  514.             this.done = false;
  515.          }.cell = _loc3_;
  516.          _global.Ring = function()
  517.          {
  518.             super();
  519.             this.onPress = mx.utils.Delegate.create(this,this.Select);
  520.             this.done = false;
  521.          }.isSelected = false;
  522.          _loc4_ = true;
  523.       }
  524.    }
  525.    if(_loc4_)
  526.    {
  527.       (_global.Ring = function()
  528.       {
  529.          super();
  530.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  531.          this.done = false;
  532.       }).MoveToCellPos();
  533.       _loc2_ = 1;
  534.       while(_loc2_ < 7)
  535.       {
  536.          _loc2_ = _loc2_ + 1;
  537.       }
  538.       _global.Ring = function()
  539.       {
  540.          super();
  541.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  542.          this.done = false;
  543.       }.pickedUp = false;
  544.       _global.Ring = function()
  545.       {
  546.          super();
  547.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  548.          this.done = false;
  549.       }.game.currentRing = null;
  550.       ┬º┬ºpush((_global.Ring = function()
  551.       {
  552.          super();
  553.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  554.          this.done = false;
  555.       }).stopDrag());
  556.    }
  557.    else
  558.    {
  559.       _global.Ring = function()
  560.       {
  561.          super();
  562.          this.onPress = mx.utils.Delegate.create(this,this.Select);
  563.          this.done = false;
  564.       }.game.mainTimeline.sounds.invalidplace.play();
  565.    }
  566.    ┬º┬ºgoto(addr315);
  567. }
  568.